package com.joey.initOrDestroyMethod;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class start {
    public static void main(String[] args) {
        //触发构建函数
        ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("initOrDestroy.xml");

        //触发销毁函数
        context.close();
    }
}
